package com.bifang.common.vo.operation;

import com.bifang.common.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 操作期设置表
 *
 * @author chenzh
 * @since 2020-09-26
 */
@Data
@ApiModel(value = "操作期对象", description = "操作期设置表")
public class OperationPeriodVO extends BaseVO {

    @ApiModelProperty(value = "操作期id")
    private Long periodId;

    @ApiModelProperty(value = "操作期控制规则")
    @NotBlank(message = "操作期控制规则不能为空")
    private String operating;

    @ApiModelProperty(value = "所属年度")
    @NotNull(message = "所属年度不能为空")
    private Integer periodYear;

    @ApiModelProperty(value = "业务年月")
    @NotNull(message = "业务年月不能为空")
    private Integer ym;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "开始时间不能为空")
    private Date begTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "结束时间不能为空")
    private Date endTime;

    @ApiModelProperty(value = "所属期id")
    private Long periodSameId;

    @ApiModelProperty(value = "操纵期控制规则名称")
    private String operatingName;

    @ApiModelProperty(value = "业务所属行政区划")
    private String areaCode;

    @ApiModelProperty(value = "业务所属行政区划名称")
    private String areaName;

    @ApiModelProperty(value = "应用id")
    private String clientId;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "组织id")
    private String orgId;

    @ApiModelProperty(value = "组织名称")
    private String orgName;

    @ApiModelProperty(value = "备注")
    private String remarks;
}
